package com.wxhandle.cleandemo.core.services;

import java.util.List;

import com.wxhandle.cleandemo.core.command.identity.RegisterUserCommand;
import com.wxhandle.cleandemo.core.domain.identity.SysClaim;
import com.wxhandle.cleandemo.core.domain.identity.SysUser;
import com.wxhandle.cleandemo.core.domain.identity.SysService.ClaimType;

public interface SysUserService extends EditableServcie<SysUser, Long> {
    SysUser register(RegisterUserCommand command);

    SysUser getOneByLogin(String login);

    List<SysClaim> getClaimsById(Long id, ClaimType type);
}
